package test_4_8;

import java.util.Scanner;

public class login {
    private String name="chenyuan";
    private String password="1122334455";

    public  void logininInfo(String name,String possword)
    {
        if(!this.name.equals(name))
        {
            System.out.println("用户名输入错误");
            return;
        }
        if(!this.password.equals(possword))
        {
            System.out.println("密码输入错误");
            return ;
        }
        System.out.println("登录成功");
    }
    public static void main(String[] args) {
        login L=new login();

        L.logininInfo("chen yuan","1122334455");

    }
}
